#ifndef __CHDEV_H__
#define __CHDEV_H__

#include <linux/device.h>
#include <linux/cdev.h>

struct chdev_data{
	struct cdev* cdev;
	struct device* device;
	unsigned int used;
	char* page;
	void** pages;
	int nr_pages;
};

int cdev_initialize(void);
void cdev_deinitialize(void);

#endif // __CHDEV_H__
